package com.yg.pay.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 魏成龙
 * @since 2020-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yg_trade")
public class Trade implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 业务订单号
     */
    @TableField("orderNo")
    private String orderNo;

    /**
     * 交易订单号
     */
    @TableField("tradeNo")
    private String tradeNo;

    /**
     * (1:支付宝 2:微信)
     */
    @TableField("payMethod")
    private Integer payMethod;

    /**
     * 交易金额
     */
    private BigDecimal amount;

    @TableField("createdTime")
    private LocalDateTime createdTime;

    @TableField("updatedTime")
    private LocalDateTime updatedTime;


}
